import request from '@/utils/request'

// 查询领用单主列表
export function listHmzBorrowMaster(query) {
  return request({
    url: '/system/HmzBorrowMaster/list',
    method: 'get',
    params: query
  })
}

// 查询领用单主详细
export function getHmzBorrowMaster(id) {
  return request({
    url: '/system/HmzBorrowMaster/' + id,
    method: 'get'
  })
}

// 新增领用单主
export function addHmzBorrowMaster(data) {
  return request({
    url: '/system/HmzBorrowMaster',
    method: 'post',
    data: data
  })
}

// 修改领用单主
export function updateHmzBorrowMaster(data) {
  return request({
    url: '/system/HmzBorrowMaster',
    method: 'put',
    data: data
  })
}

// 删除领用单主
export function delHmzBorrowMaster(id) {
  return request({
    url: '/system/HmzBorrowMaster/' + id,
    method: 'delete'
  })
}
